<%--
    Document   : grpdetail
    Created on : Jan 26, 2013, 11:18:47 PM
    Author     : jaguar
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="connection.jsp" %>
<!DOCTYPE html>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Group Details</title>
<link rel="stylesheet" type="text/css" href="css/theme.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/jquery-ui-1.8.23.custom/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="js/highstock.js"></script>
<script src="js/stockchart.js"></script>
<script>
   var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
   document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
</script>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie-sucks.css" />
<![endif]-->
<link rel="stylesheet" href="js/jquery-ui-1.8.23.custom/development-bundle/themes/base/jquery.ui.all.css">
        <script src="js/jquery-ui-1.8.23.custom/js/jquery-1.7.2.min.js" type="text/javascript"></script> 
        <script src="js/jquery-ui-1.8.23.custom/development-bundle/ui/jquery.ui.core.js"></script>
	<script src="js/jquery-ui-1.8.23.custom/development-bundle/ui/jquery.ui.widget.js"></script>
	<script src="js/jquery-ui-1.8.23.custom/development-bundle/ui/jquery.ui.accordion.js"></script>
        
         
        <script>
    $(function() {
		$( "#sidebar" ).accordion({
			autoHeight:false,
                        event: "mouseover"
		});
	});
    
</script>
<script src="js/highstock.js"></script>
                <script src="js/exporting.js"></script>
                <script src="js/hcjs/themes/dark-green.js"></script>
</head>

<body>
	<div id="container">
    	<div id="header">
        	<h2>Stock Market Website</h2>
    <div id="topmenu">
            	<ul>
                    <li><a href="user_home.jsp">Dashboard</a></li>
                    <li><a href="portfolio.jsp">Portfolio</a></li>
                    <li><a href="charts.jsp">Charts</a></li>
                    <!--<li class="current"><a href="chatgroup_admin.jsp">Chat Group</a></li>-->
                    <li><a href="experts_admin.jsp">Experts</a></li>
                    <!--                    <li><a href="emails.jsp">Emails</a></li>-->
              </ul>
          </div>
      </div>
      <div id="top-panel">
          <div id="panel">
          <form action="" name="quoteform" >
              	<input type="text" placeholder="Enter company symbol" name="sym_nm" id="sym_id" />
                <input type="submit" value="Get Stock Value" />
            </form>
          </div>
      </div>
        <div id="wrapper">
            <div id="content">
                <div id="box">
                    <%
                        String q = request.getQueryString();
                        int id = Integer.parseInt(q.substring(3));
                        
                        Statement st1 = con.createStatement();
                        ResultSet rs1 = st1.executeQuery("select g_name from stock.group where g_id='"+id+"'");
                        if(rs1.next())
                            out.print("<h3>"+rs1.getString(1)+"</h3>");
                     %>
                     <table>
                        <thead>
                            <tr>
                                <th><center>Group Name</center></th>
                                <th><center>Number of Members</center></th>
                                <th><center></center></th>
                                <th><center>Details</center></th>
                            </tr>
                        </thead>
                        
                        <%
                            
                        %>
                        
                     </table>
                </div>
            </div>
            <div id="sidebar">         
                	<li><h3><a href="#" class="house">Dashboard</a></h3>
                        <ul>
                        	<li><a href="logout.jsp" class="report">Logout</a></li>
                        </ul>
                    </li>
                    <li><h3><a href="#" class="report">Charts</a></h3>
          				<ul>
                            <li><a href="area.jsp" class="report">Area</a></li>
                            <li><a href="#" class="report">Candle-Stick</a></li>
                            <li><a href="#" class="report">Candle-Stick Volume</a></li>
                        </ul>
                    </li>
                   <li><h3><a href="#" class="folder_table">Orders</a></h3>
          				<ul>
                        	<li><a href="experts_admin.jsp" class="shipping">Experts</a></li>
                   </ul>
                    </li>
                    
                  			       
          </div>
      
      </div>
        <div id="footer">
        <div id="styleswitcher">
            <ul>
                <li><a href="javascript: document.cookie='theme='; window.location.reload();" title="Default" id="defswitch">d</a></li>
                <li><a href="javascript: document.cookie='theme=1'; window.location.reload();" title="Blue" id="blueswitch">b</a></li>
                <li><a href="javascript: document.cookie='theme=2'; window.location.reload();" title="Green" id="greenswitch">g</a></li>
                <li><a href="javascript: document.cookie='theme=3'; window.location.reload();" title="Brown" id="brownswitch">b</a></li>
                <li><a href="javascript: document.cookie='theme=4'; window.location.reload();" title="Mix" id="mixswitch">m</a></li>
            </ul>
        </div><br />

        </div>
</div>
</body>
</html>
